<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
	google.load("jquery","1");
</script>

</head>
<%
	
	String cep = request.getParameter("cep");
	if(cep==null)
		cep = "";
%>
<body>
	<script>
		$(function(){
			$.ajax('http://cep.republicavirtual.com.br/web_cep.php',{
				data:'formato=javascript&cep='+<%= request.getParameter("cep")%>,
				type:"json",
				success:function(data){
					$('#backBlack, #loader').stop().fadeOut();
					alert(data);
				},
				error:function(){
					$('#backBlack, #loader').stop().fadeTo(300,0);
					mostrarMensagem(3, "Erro ao pesquisar CEP! Contate os Desenvolvedores!");
				}
			});
		});
	</script>
	<div id="resultados">
	
	</div>
</body>
</html>